<%@ page import="javax.naming.Context" %>
<%@ page import="javax.naming.InitialContext" %>
<%@ page import="com.wuchao.service.serviceimpl.ServiceImpl1" %>
<%@ page import="com.wuchao.entity.Pojo" %>
<%@ page import="java.util.List" %>
<%@ page import="com.wuchao.basedao.BaseDao1" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="com.wuchao.basedao.BaseDao" %><%--
  Created by IntelliJ IDEA.
  User: 吴超
  Date: 2022/4/18
  Time: 14:57
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    Context ct=new InitialContext();
    Object lookup = ct.lookup("java:comp/env/t131");
    out.print((String)lookup);
    BaseDao1 baseDao1 = new BaseDao1();
    Connection connection = baseDao1.getConnection();
    if(connection==null){
        out.print("没有");
    }else{
        out.print("有");
    }
%>

</body>
</html>
